package project_package;
public class Product {

	int id;
	int quantity;
	double price;
	double discount;
	String name;
	String description;
	String location;
	
	public Product(int id, double price, double discount, String name, String description, int quantity, String location)
	{
		this.id = id;
		this.price = price;
		this.discount = discount;
		this.name = name;
		this.description = description;
		this.quantity = quantity;
		this.location = location;
	}
	
	// gets product id
	public int getID()
	{
		return id;
	}
	
	// gets product quantity
	public int getQuantity()
	{
		return quantity;
	}
	
	// gets product name
	public String getName() 
	{
		return name;
	}
	
	// gets product location
	public String getLocation()
	{
		return location;
	}
	
	// gets product price
	public double getPrice() 
	{
		return price;
	}
	
	// gets product discount
	public double getDiscount()
	{
		return discount;
	}
	
	// gets product price with discount
	public double getPriceDiscount() 
	{
		return (getPrice() - getPrice()*getDiscount());
	}
	
	// gets product description
	public String getDescription()
	{
		return description;
	}
	
	// sets product id
	public void setID(int id) 
	{
		this.id = id;
	}
	
	// sets product quantity
	public void setQuantity(int quantity)
	{
		this.quantity = quantity;
	}
	
	// sets product location
	public void setLocation(String location)
	{
		this.location = location;
	}
	
	// sets product name
	public void setName(String name)
	{
		this.name = name;
	}
	
	// sets product price
	public void setPrice(double price)
	{
		this.price = price;
	}
	
	// sets product discount
	public void setDiscount(double discount)
	{
		this.discount = discount;
	}
	
	// sets product description
	public void setDescription(String description)
	{
		this.description = description;
	}
	
	// prints product info
	public void printProductInfo()
	{
		System.out.println("Product ID : " + id);
		System.out.println("Product Name : " + name);
		System.out.println("Product Price : " + price);
		System.out.println("Product Discount : " + discount*100+"%");
		System.out.println("Product Description : " + description);
	}
}